package com.scqzy.shengchunqiang.sword2offer.day19;

/**
 * @Description: 剑指 Offer 64. 求1+2+…+n
 * @Author 盛春强
 * @Date 2021/8/26 11:13
 */
public class SumNums {
    public int sumNums(int n) {
        boolean b = n > 1 && (n += sumNums(n - 1)) > 0;
        return n;
    }
}
